import 'package:flutter/foundation.dart';
import 'package:permission_handler/permission_handler.dart';

requestStoragePermission() async {
  if (kIsWeb) {
    return true;
  }
  Map<Permission, PermissionStatus> statuses = await [
    Permission.storage,
  ].request();

  // final info = statuses[Permission.storage].toString();
  // print('$info  权限info');
}

requestPhonePermission() async {
  if (kIsWeb) {
    return true;
  }
  Map<Permission, PermissionStatus> statuses = await [
    Permission.photos,
  ].request();

  // final info = statuses[Permission.storage].toString();
  // print('$info  权限info');
}
